Page({
  data: {
    prizeid: "",
    isPopup: false,
  },
  onLoad(option) {
    console.log(option.prizeid);
    this.setData({
      prizeid: option.prizeid,
    });
  },
  img() {},
  // 下一步
  next() {
    wx.navigateTo({
      url: "/pages/information/information",
    });
  },
  // 分享给朋友
  onShareAppMessage() {
    return {
      title: "中奖信息",
      path: "/pages/award/award?prizeid=" + this.data.prizeid,
    };
  },
  // 分享到朋友圈
  onShareTimeline() {
    return {
      title: "中奖信息",
      query: `id=${this.data.prizeid}`,
    };
  },
  sharingWithFriends() {
    this.setData({
      isPopup: true,
    });
  },
  mark() {
    this.setData({
      isPopup: false,
    });
  },
  save(e) {
    console.log("保存", e);
    // wx.previewImage({
    //   current: '',
    //   urls: [],
    //   success: (result) => {

    //   },
    //   fail: () => {},
    //   complete: () => {}
    // });
  },
  longTap() {
    console.log("长按识别小程序");
  },
});
